.class Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;
.super Ljava/lang/Object;
.source "ZMDownloadListActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->deleteDownloads(Ljava/util/Set;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

.field final synthetic val$firstVisiablePosition:I


# direct methods
.method constructor <init>(Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;I)V
    .registers 3
    .param p1, "this$0"    # Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    .prologue
    .line 703
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    iput p2, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->val$firstVisiablePosition:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    .prologue
    .line 708
    const/4 v0, 0x0

    .local v0, "groupPosition":I
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->mDateSortedAdapter:Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;
    invoke-static {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->access$300(Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;)Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;

    move-result-object v3

    invoke-virtual {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedDownloadAdapter;->getGroupCount()I

    move-result v2

    .local v2, "size":I
    :goto_b
    if-ge v0, v2, :cond_3b

    .line 710
    :try_start_d
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->mExpandedMap:Ljava/util/Map;
    invoke-static {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->access$1000(Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;)Ljava/util/Map;

    move-result-object v3

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    .line 711
    .local v1, "isExpand":Z
    if-eqz v1, :cond_2f

    .line 712
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->mDateOrderedListView:Landroid/widget/ExpandableListView;
    invoke-static {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;)Landroid/widget/ExpandableListView;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/widget/ExpandableListView;->expandGroup(I)Z

    .line 708
    .end local v1    # "isExpand":Z
    :goto_2c
    add-int/lit8 v0, v0, 0x1

    goto :goto_b

    .line 714
    .restart local v1    # "isExpand":Z
    :cond_2f
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->mDateOrderedListView:Landroid/widget/ExpandableListView;
    invoke-static {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;)Landroid/widget/ExpandableListView;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/widget/ExpandableListView;->collapseGroup(I)Z
    :try_end_38
    .catch Ljava/lang/Throwable; {:try_start_d .. :try_end_38} :catch_39

    goto :goto_2c

    .line 716
    .end local v1    # "isExpand":Z
    :catch_39
    move-exception v3

    goto :goto_2c

    .line 719
    :cond_3b
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->mDateOrderedListView:Landroid/widget/ExpandableListView;
    invoke-static {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;)Landroid/widget/ExpandableListView;

    move-result-object v3

    iget v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->val$firstVisiablePosition:I

    invoke-virtual {v3, v4}, Landroid/widget/ExpandableListView;->setSelection(I)V

    .line 720
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity$11;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->mExpandedMap:Ljava/util/Map;
    invoke-static {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;->access$1000(Lcom/zuimeia/sdk/download/providers/downloads/ui/ZMDownloadListActivity;)Ljava/util/Map;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Map;->clear()V

    .line 721
    return-void
.end method
